A panorama-imaging atom describes the default imaging characteristics for all the panoramic nodes in a scene. This atom overrides QuickTime VR's own defaults. Those defaults are described in "QTVRSetImagingProperty" in the chapter "QuickTime VR Manager."
The panorama-imaging atom has an atom type of kQTVRPanoImagingAtomType ( 'impn' ). Generally, there is one panorama-imaging atom for each imaging mode (see below), so the atom ID, while it must be unique for each atom, is ignored. QuickTime VR iterates through all the panorama-imaging atoms.
The structure of a panorama-imaging atom is defined by the VRPanoImagingAtom data type:
typedef struct VRPanoImagingAtom {
UInt16 majorVersion;
UInt16 minorVersion;
UInt32 imagingMode;
UInt32 imagingValidFlags;
UInt32 correction;
UInt32 quality;
UInt32 directDraw;
UInt32 imagingProperties[6];
UInt32 reserved1;
UInt32 reserved2;
} VRPanoImagingAtom, *VRPanoImagingAtomPtr;
The imagingValidFlags field in the panorama-imaging atom structure specifies which imaging property fields in that structure are valid. You can use these bit flags to specify a value for that field:
enum {
kQTVRValidCorrection = 1 << 0,
kQTVRValidQuality = 1 << 1,
kQTVRValidDirectDraw = 1 << 2,
kQTVRValidFirstExtraProperty = 1 << 3
};
| Previous | Chapter Contents | Chapter Top | Next |